/*
 * Decompiled with CFR 0.150.
 * 
 * Could not load the following classes:
 *  javafx.scene.control.Alert
 *  javafx.scene.control.Alert$AlertType
 *  javafx.scene.control.ButtonBar$ButtonData
 *  javafx.scene.control.ButtonType
 */
package com.gys.common.util;

import java.util.Optional;
import javafx.scene.control.Alert;
import javafx.scene.control.ButtonBar;
import javafx.scene.control.ButtonType;

public class AlertUtil {
    public static void creatAlert() {
        Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
        alert.setHeaderText("\u6362\u73ed");
        alert.setContentText("\u662f\u5426\u7ed3\u675f\u6240\u6709\u4e1a\u52a1\u8fdb\u884c\u6362\u73ed");
        ButtonType buttonTypeOne = new ButtonType("One");
        ButtonType buttonTypeTwo = new ButtonType("Two");
        ButtonType buttonTypeThree = new ButtonType("Three");
        ButtonType buttonTypeCancel = new ButtonType("Cancel", ButtonBar.ButtonData.CANCEL_CLOSE);
        alert.getButtonTypes().setAll(new ButtonType[]{buttonTypeOne, buttonTypeTwo, buttonTypeThree, buttonTypeCancel});
        Optional result = alert.showAndWait();
        if (result.get() == buttonTypeOne || result.get() == buttonTypeTwo || result.get() == buttonTypeThree) {
            // empty if block
        }
    }
}

